import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main3 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int t = in.nextInt();
        int[][] arr = new int[t][6];
        for(int i = 0; i<t; i++){
           for(int j = 0; j<6;j++){
               arr[i][j] = in.nextInt();
           }
       }
       for(int i = 0; i<t; i++){
           String func = func(arr[i]);
       }
   }

   public static String func(int[] arr){
       Arrays.sort(arr);
       int left = arr.length-3;
       int right = arr.length-2;
       int n = arr[arr.length-1];
       while(n>1){
           while(left<right){
               if((arr[left]+arr[right]) < arr[n]){
                   return "No";
               }
           }
       }
    }
}